﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.Distribution
{
    /// <summary>
    /// 等级设置
    /// </summary>
    [TableName("dis_Grade")]
    public class DisGrade
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 佣金满足点
        /// </summary>
        public int BrokerageLimit { get; set; }
        /// <summary>
        /// 成交店铺佣金奖励
        /// </summary>
        public int FirstBrokerageRise { get; set; }
        /// <summary>
        /// 上一级成交店铺奖励
        /// </summary>
        public int SecondBrokerageRise { get; set; }
        /// <summary>
        /// 上二级成交店铺奖励
        /// </summary>
        public int ThirdBrokerageRise { get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }
        /// <summary>
        /// 类型0：分销商，1：代理商
        /// </summary>
        public int GradeType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DisGrade()
        {
            StoreId = BrokerageLimit= FirstBrokerageRise= SecondBrokerageRise= ThirdBrokerageRise=0;
            Name = Description = string.Empty;
            IsDefault = false;
            GradeType = 0;
        }

    }
}
